<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
 	name: 'app',
 	computed:{
		loadingCount(){
			return this.$store.state.loadingCount
		}
	},
	beforeCreate(){
		window.FC_loadingInstance={
			close(){}
		}
	},
  	watch:{
  		loadingCount:function(newData){
			if(newData==0){
				FC_loadingInstance.close()
				console.log("loading close ........")
			}else{
				console.log("loading ........")
				window.FC_loadingInstance=vm.$loading({
				    text: '正在加载中...'
				})
			}
		}
  	}	  
}
</script>

<style>

</style>
